<?xml version='1.0' encoding='ISO-8859-1' ?>
<ui:composition template="/templates/padrao.xhtml"
     xmlns="http://www.w3.org/1999/xhtml"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:p="http://primefaces.org/ui" >
     
	  <ui:define name="centro">
	      <h:form styleClass="loginPanelStyle">
	         <p:growl id="msgs" showDetail="true" sticky="false" />
	                                     
			<p:panelGrid columns="2">
	             <f:facet name="header">
	                 #{msg.indexTitulo}
	             </f:facet>
	             
	             <h:outputText value="#{msg.indexUsuario}: "></h:outputText>
	             <p:inputText id="username" value="#{loginController.username}" required="true" requiredMessage="#{msg.indexRM1}" >
	                 <f:validateLength minimum="3" />  
	             </p:inputText>
	             
	             <h:outputText value="#{msg.indexSenha}: "></h:outputText>
	             <p:password id="password" value="#{loginController.password}" required="true" requiredMessage="#{msg.indexRM2}">
	                 <f:validateLength minimum="3" />
	                 <f:converter converterId="br.ucb.util.SHAConverter" />  
	             </p:password>
	             
	             <f:facet name="footer">
	             	<p:commandButton value="#{msg.indexConectar}" update="msgs" actionListener="#{loginController.login}" type="submit" icon="ui-icon-check" style="margin:0"></p:commandButton>
	            </f:facet> 
	        </p:panelGrid>
	    </h:form>
	 </ui:define>
     
</ui:composition>